typeof returns a string, so respect that.

Summary: See D12321 and D12218

Test Plan: See D12321 and D12218

Reviewers: aria, alpert, eater

Reviewed By: eater

Subscribers: eater

Differential Revision: http://phabricator.khanacademy.org/D12322