Online HTML To Javascript Converter allows you to convert HTML to Javascript, it is easy to use, you could edit converted Javascript file.