moving behaviours.js and entities.js to the right place