create collections based on Julian's data model v0.3

* create collections based on data model v0.3
* port coffeescript to javascript