https://tutorial.eyehunts.com/js/javascript-pass-function-as-parameter-with-arguments/
JavaScript pass function as parameter with arguments