Additional ruby code, and JS code