text: require(["alertUtil"], function (alertUtil) {
  	
  	$("#addWebsiteForm").submit(function (event) {
  
  		event.preventDefault();
  		event.stopPropagation();
  		
  		$.post("/webmon/websites", $(this).serialize(), function (response) {
  			if(response.result === "fail")
  				alertUtil.danger("New website cannot be added. Please try again.");
  			else if(response.result === "Website already exists")
  				alertUtil.warning("You are already monitoring the given website.");
  			else {
  				alertUtil.success("Website added successfully. Redirecting back to dashboard...");
  				setTimeout(function () {
  					location.href = "/webmon";
  				}, 1000);
  			}
  		});
  		
  		return false;
  	});
  });