Updating demo js file