call bag.js via require
rewritten media select methods
fix media count calculating for albums