Added component.js for frontend module management