Changed format of html and moved elements around. Fixed js working directory