updated jquery.raty
Rails 4 compatibility
updated lock for Rails 4