Using basejs to modular development