move index2.html to public/
move js code out of view