Added generic templates for forms and tables
Use str_replace instead of RegExp to set nonce in CSP()