Add jshint for define.
Convert switch to if.
Add "jquery" to define.