Convert bootstrap to use AMD

This makes it work properly with requirejs.