Modified js and html to lower size of html