Rewrite with more basic javascript. Performance is now more like a horse, still not like a racecar...