code: function extensionsParser(str) {
  	// Convert the file extensions string to a list.
  	var list = str.split(',');
  	for (var i = 0; i < list.length; i++) {
  		// Make sure the file extension has the correct format: '.ext'
  		var ext = '.' + list[i].replace(/(^\s?\.?)|(\s?$)/g, '');
  		list[i] = ext.toLowerCase();
  	}
  	return list;
  }
docs: connected client of changes made to files. This will allow browsers to refresh their page. The WebSocket client will be sent 'restart' when the script is restarted and 'exit' when the script exists. 
  Parses the supplied string of comma seperated file extensions and returns an
  array of its values.
  @param {String} str - a string on the format ".ext1,.ext2,.ext3".
  @retruns {String[]} - a list of all the found extensions in @a str.