Updated to changes in basis.js.

Mainly changed keys in statistics gathering.