Add JavaScript to form