Fixed javascript. Well, sort of.