added uglify
cleaning up build and common js stuff