Javascript examples and test of regular expressions