Add dialog module for js confirm boxes.
Remove console log
Spelling correction
Fix jshint errors