check if not instanceof javascript