add js and ajax to layout.erb

re-added links to js file and ajax library, which fixes logout issue.