These functions are all in global scope - please use a closure and also enable strict mode:

> ;(function($) {
'use strict';