Javascript schema generator