more makefile changes

notable changes:
* no more install -D (so it works on OS X)
* uglify.js will be used if it is installed to shrink the javascript
* made much less hacky by using makefile's eval
Merge pull request #10 from ohanar/makefile

more makefile changes