Adds onclick to form button on index.html