Javascript system for bootstrapping, autoloading, and defining functionality