Rate javascript SDK