adding ajax spinner and some javascript