Using defineProperty on constructor