Do this code anywhere you tell user could add your js file

Where the above example in document write javascript strings, filming and asynchronous computation