JXG.isBrowser is not a function