Cleaned up bootstrap
Fixed xhr check
Added dom lib
Cleaned up JS