Support condition where 'func' is not defined

 * When 'func' is not defined and 'varExpression' is instead a function then excecute that function.
 * Remove the JQuery dependency as it is not needed.