javascript fix