Fix a few function calls.

They were broken due to changes in alg.js and three.js.