Fixing grunt dist not working due to few javascript errors and image location