js example