Pull JS into separate file