Put the people javascript into an extra file. Also fixes a bug in there.