Improve ellipse size computation
Rewrite code in a more "plugin way" + Switch from coffeescript to pure javascript