Moved JS to footer to follow EE 2.6 guidelines