Starting to split apart monolithic js in page