inline log function

optimize js output