Add global methods to $ context