parameterize logging in chrome js