removed javascript code and IDs on error elements

This was the last piece of code left to be a full Angular directive. No
more javascript code (or jQuery)