Javascript: parseUsername