possible javascript fix