fix recommendation js's bug