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.