Fix dimension.js code style