Fix deletion of newly created channels.
Use '$' prefix convention to indicate jquery object variables
Merge pull request #147 from mjtko/master-138

Fix deletion of newly created channels (#138). Allows deletion of newly created channels.