 ENV = if typeof exports isnt 'undefined' then 'node' else 'browser'
 
 https = require 'https' if ENV is 'node'
+
 
 httpRequest = (args) ->
 	args.port ?= 80

			port : @port
			path : endpoint

if ENV is 'node'
	exports.KissmetricsClient = KissmetricsClient
else

			record : 'e'
			set    : 's'
			alias  : 'a'

	record: (action, properties = {}) ->
		properties._n = action
