Finished functional-javascript