Changed html to js ending