separated  submit to new javascript