renamed console to log in JS