Put javascript code into widget