Adding head.js to handle conditional libraries.