Call JSObject.getWindow() with reflection (fixes #278)

If JavaFX is in the system path, the compiler uses the wrong JSObject class. This class lacks the
getWinbdow function.  This fix uses reflection, to bypass the compiler checks. At runtime, the
browser is responsible to setup the classpath correctly.