updated loading sequence for ajax calls
Signed-off-by:Matthew Scaperoth <mscapero@gwu.edu>