Prefer native Object.keys over JQuery
Don't throw TypeError when memo is undefined