change main dir bname from assets to app, and change optimize options to uglify2