Revise UI and error message text in .js files