Add function to show an inputError
Clean up coffeescript a bit