Modified JS example