Add middleware to insert scripts to the page
[Forms] Better checks for CI existence