Add support for deferred javascripts