Fix makefile to build minified js correctly