Allows sente to be used in isomorphic CLJS apps

Evaluating this call to js/window in a top level def was causing errors on my nashorn jdk 1.8 setup. Checking for window's existence first fixes it.