javascript check not instanceof