enable passing a reference to chai
simplify switch statement
Merge pull request #1 from hydrojs/load

enable passing a reference to chai