I've updated some return types to match the jQuery spec