Changes for this example to work with Express4.x framework

Made changes to fix the example to work with the latest version of Express framework