added javascript environment config support changed freelog util to support jsonp