Replaced .get's with propery .ajax's and added error handling and timeout