javascript work done after the AJAX stuff