Codestyle
Removed deprecated use of JError. TODO: Need to verify which I could change to regular messages.