v1.3.5 - fix #285, fix #312

Improve bootstrap 3 support