make star rating work with ajax in production