fixed #82 preventing on js side to submit form twice