added console.log (as well as out.println) as it is more native to JS