Re-did a line-by-line of timemap.py to timemap.js. Untested.