js concat/minifying, and some cleanup in app code