Hacked form submit with timeout function