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!)
fix spacing, porting changes
Merge branch 'master' into patch-1

Conflicts:
	index.html
Merge pull request #4 from framp/patch-1

Refactoring, thanks to @framp