JS example