added js example in readme