You should also check out Leaflet[1], it might save you some time, or at least give you some answers to any questions that might pop up while writing your own map engine :-)
All the others that I've tested get stuck at 100% CPU, which why I wrote my own (minimal) engine.