Fix call to undefined JS method

Fixes https://github.com/ManageIQ/manageiq/issues/1040
Merge pull request #1043 from bmclaughlin/fix-undefined-js-method-error

Fix call to undefined JS method