Make cursor.map/forEach follow the ECMAScript APIs

...as per convention in Javascript. This makes for much more elegant code.