Added a little more detail to the JS example.