JS bug removal