split js from main html