content: import React from 'react';
  import $ from 'jquery';
  import _ from 'lodash';
  import moment from 'moment-timezone';
  import ExecutionEnvironment from 'react/lib/ExecutionEnvironment';
  
  import AppComponent from './component/app';
  import AppActions from './action/app';
  
  
  if (ExecutionEnvironment.canUseDOM) {
  	window.$ = $;
  	window._ = _;
  	window.moment = moment;
  	window.AppActions = AppActions;
  }
  
  let App = React.createFactory(AppComponent);
  let json = 'application/json; charset=utf-8';
  
  $.ajaxSetup({
  	contentType: json,
  	accepts: {
  		json: 'application/json'
  	},
  	dataType: 'json',
  	processData: false,
  	beforeSend (req, options) {
  		// This ensures that requests using JSON stringify their content before sending
  		if (options.contentType === json && options.data && typeof options.data !== 'string') {
  			options.data = JSON.stringify(options.data);
  		}
  	}
  });
  
  if (!Array.prototype.find) {
  	Array.prototype.find = function(predicate) {
  		if (this == null) {
  			throw new TypeError('Array.prototype.find called on null or undefined');
  		}
  		if (typeof predicate !== 'function') {
  			throw new TypeError('predicate must be a function');
  		}
  
  		var list = Object(this);
  		var length = list.length >>> 0;
  		var thisArg = arguments[1];
  		var value;
  
  		for (var i = 0; i < length; i++) {
  			value = list[i];
  			if (predicate.call(thisArg, value, i, list)) {
  				return value;
  			}
  		}
  		return undefined;
  	};
  }
  
  React.render(App({user}), $('#react-mount')[0]);