attempting to fix breaking tests of jqeury.on method