Renamed functions according to threejs changes.

This prevents errors and warnings when updating threejs. Currently tested with threejs r65.