Getting a "'null' is not an object" when adding a script with a form.