Refactor InfoTip to use require properly

Test plan: add all the widgets to test.html

Auditors: alex