splite out JS into a few files