OMG such purism ;D

Fixes:
- An object declaration should be followed by a semicolon (my fault, yesterday I was surrounded by my mother-in-law's screamings)
- checkUsername() was called before it was defined, so now it is moved and I am considering removing that (why not a direct inline test inside the if?)
- if (something === null) should be expressed with the triple =; fixed this