change file extension from html to js