split entities into their own js file