added rails.js
worked on gui actions