adds translation between ruby and js