Changed file format from html to js