Fix bootstrap js loading in Joomla 3.1.4

In Joomla 314, they have updated and fixed the bootstrap version.

This fix checks for J3.1.4 and reverts to the Joomla version if we are there.

P.S. The bootstrap in T3 does not contain the Joomla fixes and creates bugs such as tooltips not working etc.