JS Embeded form not stable on the first load