client js fixes to bypass jslint errors