Fix error in tips.js. Fixes #545