Updated Object.create to a more compatibile version