Cancel button click when executing script - don't return(false)
Use this:
l.click(function () { if (typeof this.preventDefault !== 'undefined') { this.preventDefault(); } return false; });