remove javascript code from the pages and create separate files