Little changes to make it easier to use
A proper example written for Node-Webkit