Check the typeof a required script, so can warn when a function wasn't exported instead of a scary backtrace
Fix logged warning language
Merge pull request #835 from github/handle-script-not-exporting-function

Handle a script not exporting a function