Changed the function object constructor to function literal to avoid CSP issues