A small fix to make JS code sample to run