(refactor) separate option setting from usage.

+ suppressed jshint on hoisted function.  I might disable this warning altogether...
completed "static code analysis" task.