prototype inheritance implemented to make it 'weightless' for three.js issue #3117