added example js