handle code with return-statment in main cod (allowed in node.js)