replace subSelf with sub in three.js