Added js-ized cpp wrapper.
Added shorthand notation macro for for loops.