detect warnings using jshint and change that.

change Immediate function to Anonymous function.