allows for functions and JS statements to be passed via JS, enabled by default for now