This is Single page application using javascript in Ruby on rails