added underscore.js and cleaned up some code
fine tuning