Added error handling to page load ajax calls

Signed-off-by: Matt White <matthew.white@fclonline.com>