Updated scripts and ajax for rating/comment functionality