Used JavaScript SDK code