Speed up result rendering by moving inline click handlers into app JS