JavaScript star rating system based on Ajax