Rails js integration