Make respond.js more concise