Another approach to this that may work for you would be the existing voting plugin:
6 Mi Piace
Another approach to this that may work for you would be the existing voting plugin: