Fix broken implementation of $().map