Final result of jscript homework