Relocate js markup in index.html