Some experiments with JavaScript