dimensions.js cleanup