first attempt at connecting components using javascript
connection