Single page Rails app using AJAX