MDL-59845 tool_lp: Add js tracking around UI refresh