fixing stuff jslint complained about