anchor.diff:  			$('select').material_select();
   
   			$('#rate').addRating({
  -				fieldName : 'rating',
  -				fieldId : 'rating',
  +				fieldName : 'rateRating',
  +				fieldId : 'rateRating',
   			});
   
   			$(".dropdown-button").dropdown({
  
positive.code: 			});
  
  			// method to set rating
  			var i = 1;
  			$('.rating').find('i').each(function() {
  				if (i == 0) {
  					return false;
  				}
  				$(this).text('favorite');
  				i--;
  			});
  
  		});
  	</script>
  </body>
  
  
negative.code: 					</div>
  
  					<div class="section">
  						<c:choose>
  							<c:when test="${ hasRated }">
  								<h5 id="rateTitle">You have rated</h5>
  								<div id="rate" class="red-text text-lighten-1"
  									data-id="<c:out value="${movie.id}"></c:out>"
  									data-prevRating="<c:out value="${rating}"></c:out>"
  									onclick="rateMovie()"></div>
  							</c:when>
  							<c:otherwise>
  								<h5 id="rateTitle">How much you like this movie?</h5>
  								<div id="rate" class="red-text text-lighten-1"
  									data-id="<c:out value="${movie.id}"></c:out>"
  									data-prevRating="0" onclick="rateMovie()"></div>
  							</c:otherwise>
  						</c:choose>
  					</div>
  				</div>
  
  