pmeasure.js is all messed up now but I'm determined to figure this out.