move javascript into <html></html>