example for js