fixing an IE6 error and jshint errors