bug in submit js