Allow form submission through javascript