Refactoring

Code cleaning (removed those ugly if elseif)
JSLinted (not exactly my kind of thing - but I noticed you were using 4 spaces indentation, multiple var declaration and I assumed you were following Crockford)
Added personRange (because not everyone sleeps!)