Switched "for...in" loops to "for" loops for iterating over some arrays

Now compatible with Ember.JS.
Changed CoffeScript, will need compilation!

fixes #45 :)