now we can submit directly from javascript