fixes for jshint tests and compatability with ie