Implemented recordsToJs. Added version support to fix optionkeys issue in 10.7