Split js into a separate file. Changed asset urls to relative urls