fixed js window.location on form submit