Removed string declarations.
Removed all instances of hasOwnProperty method.
Changed for in loops to for loops.