moved application js from bottom to head