Added Mary's part in Truong's kron.js.