functional app with the first inklings of javascript