Changed the function object constructor to a function literal to avoid CSP issues
Merge pull request #157 from superlukas/master

Change the function object constructor to a function literal to avoid CSP errors.