fixed typos & using Object.create(null)