js samples