Several samples of my Javascript code