add functions file - from mathiasbynens/dotfiles