Js fix

Used jsHint to fix some errors in Common.js CRM-12262