Broadcasts no longer work by ajax, moved most js to application.js with functions