cleaned up pmeasure.js per guidance from jslint.com.