fix some issues in practice.js in section 5