Changed script format
Updated components.js