Fixing up javascript files to meet standard layout spec