[js/en] Changed example

This could be a better example for beginners.