* Add ESLint plugin to check for any function declare after return * Refactor code to move function declarations before return and fix failing lint
* Add ESLint plugin to check for any function declare after return * Refactor code to move function declarations before return and fix failing lint