Improved warning by 'jshint':

[L7:C21] W004: 'element' is already defined.
    var element = $( element );
Fixed lintjs warning:

Linting Gruntfile.js ...ERROR
[L16:C1] W099: Mixed spaces and tabs.
      }
Fixed some jshint warnings:

[L41:C16] W099: Mixed spaces and tabs.
                  display = true;
[L100:C4] W099: Mixed spaces and tabs.
            $( '<option>' )
Applied jshint suggestion:

[L132:C35] W009: The array literal notation [] is preferable.
      var fields = new Array();
[L146:C35] W009: The array literal notation [] is preferable.
      var inputs = new Array();