JavaScript: Basic Log Function