Bug 902983 - Split oncall.js and make it testable