Mootools compatibility patch.

Changed for in loops to basic for loops in order to avoid iterating over prototype items added by mootools.
Merge pull request #7 from 42shadow42/master

Mootools compatibility patch.