// Configure jQuery to appened any ajax requests with our authenticity tokan
$(document).ajaxSend(function(event, request, settings) {
	if(typeof(AUTH_TOKEN)=="undefined") return;
	// Universally change the settings
	settings.data = settings.data || "";
	settings.data += (settings.data ? "&" : "") + "authenticity_token=" + encodeURIComponent(AUTH_TOKEN);
});