splits js into its own page for better debugging