DK: refactored get jquery call and used more flexible ajax call to specify dataType format.
TL|DK: added error handling for remote record button