Added usage example in JavaScript