moving onresize function to index.html
changing names