Fix scripts in component.js