add underscore.js dependency.
refactor js-code to use underscore.js.
Merge pull request #893 from ontohub/891-underscore_js

891 underscore js