inject window and define. bitwise jshint fix