Code sample based on a tuts+ tutorial (Desktop Apps With Node-Webkit)