Updating component.js for case