Dependencies: add require js
tools.js: some utility functions