slugify = function(str) {
  return str.replace(/\ /g, '_');
}
Slugifies a string by replacing spaces with _. Used to create
valid classnames and ids for the form.

@function
@param {String} str The string to slugify
@return {String} The slugified string.