set chatpage.js.erb to run after chatpage finished loading
moved chat form to a partial
updated chat_backend.rb to support multiple chat pages and tweaked chatpage.js.erb to make path name adaptable also added test view