Facebook UI (Inline) Tokenizer clone in Javascript