changed loadJS to ajax