Modified proofing.js to use new API