rating generator script