move definition of 'scene' object to types.js