JS embedded form not stable