Some examples in Javascript