added tweaks to main.js started adding entitymanager