Port of NHibernate to JavaScript