Have to place javascript before {{.LayoutContent}} in page otherwise jQuery does not load early enough.
Minor change.