fixed JS rendering twice problem, had two application tags in layouts