Code for A bit about JavaScript functions talk