Updates to frontend code for jshint compat