Move js from template