Tidy up CSS
Minor JS refactoring for error display
style for the result div