Few experiments with javascript