bugfix where jquery snippet is not used @brianr @sbezboro