Add logging to Save form
Fix jshint issues