Updated Components documentation reflecting current Ports API

Provided examples in both CoffeeScript and JavaScript.