corrected js for commission flash message