Move hints.js code into interface.js

Test Plan:
Took hints, got acceptable formats.

Auditors: eater, cbhl