local javascript fix