commit js for ajax mess