made main function on solution.js anonymous