Updated JS to not show search params when clicking on message