Adds conditional for bootstrap shim in require_main.js

Fix for issue #95
Merge pull request #103 from asuh/master

Adds conditional for bootstrap shim in require_main.js