Add footer + js to support cocoon