Fork of Base.js with improved performance and various bug fixes