Fixed js incompatibility