This code should be inserted into <head> or <body> element of the webpage. In case of CMS systems the situation can be a bit more complicated; however this procedure should work in most of the cases. Exact location of the code does not influence location of the widget. Script requires usage of window.onload