Add image optimization in grunt and restructure the javascript folder.