Fixed some frontend tests and jslint warning