Adds semicolon to please jslint
Adds test to not throw if username is undefined
Make awkward void 0 expression better readable because we're not in an uncontrolled browser world