using promise returned by $.ajax
uglify/etc using grunt tools