This is the code for the second part on Intel XDK introduction series on Sitepoint