made the js example a little more exciting