JS functions examples