added example for js only decoder