Why do you have this in app/assets document.ready AND here?  The asset pipeline will load both.