Client-side part of getting the "associate recommended sentence" button working.