removed some white space, comments and moved some js around