update bootstrap shim from https://gist.github.com/benfoxall/8844292