Shortened hints.js and move some variable declarations.