Adding live updates as the user enters the chemical formula for molar
mass