Move most independent functions outside from JqueryBracket scope