JQuery noConflict compatibility, minor code cleanup