Put divided javascripts into suitable place