Add basic safe eval replacement to comply with strict CSP