fixes hinted by jslinter