Add support for head/foot JavaScript includes