Javascript schema checker