Splitting out JS