added in isClient and isServer to .js