Updated example1,js to reflect npm