function createEl(tag, prop) {
    var el = document.createElement(tag || 'div')
      , n

    for(n in prop) el[n] = prop[n]
    return el
  }
Utility function to create elements. If no tag name is given,
a DIV is created. Optionally properties can be passed.