javascript if not instanceof