Shows two examples of javascript closure functions