Provide getId on prototype