Now has only view function in JS for sentence