js basic example