Added writing for ratings.

Will work on actually writing the JS after a while.
I am a dumbass