Change type of submit button to :button

With type :submit, two POST requests were being sent - one because
the button was of type :submit and the other explicitly from JS