Small change to js file, added example