Modular programming for jquery and bootstrap scripts