Define prototype getters directly
Fix code style