Cross-browser Object.keys implementation