rating in post.php js fix