fix some slow javascript. oops
merve