make nodejs-example AMD compatible