fixed jshint errors/warnings
added TEMPFAIL