adding a function, that detects if the application is running on the jitsu server  or on my local computer