allow inlining of js for use in webworkers