Refactored parts.js to use a object instead of global.