Added titles to rating directive and changed click listener to use jQuery instead of vanilla JavaScript