add working js example