added heroes.js and functions.js

moved heroes to heroes.js and other minor clean-up