Improve js example