a few js snippet to serve as example for a JS training