recommendations javascript