Use our own build.js script

ol3's build.js script is too specific and doesn't currently work outside the ol3 directory.
Lint code with gjslint
Fix lint errors in simple example
Lint code with jshint
Run linters when necessary only