This is in JavaScript now

JavaScript rewrite of the original script, because we hate ourselves and decided to write this in node.
No ldap because we'd probably need some node package for it and I'm not that deep.
In case of duplicates, this gets the last entry. It should get the first entry, and I don't think that is even gauranteed to be the first login time.