put jscript inside <div> for styling, added styling in css