Ported coffee charts to js


Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
The `#{...}` replacement in strings is a CoffeeScript trick I believe. I think you will need to change this. See the [translation here](http://coffeescript.org/#try:%40%24el.append%20%22%3Coption%20value%3D%5C%22%23%7B%20model.id%20%7D%5C%22%3E%23%7B%20model.get%20'name'%20%7D%3C%2Foption%3E%22).