Pull javascript setup into its own file