Rearranged code.
Properly bind onclick event to person class.