Added basic functionality for rating using javascript callbacks to main
activity.