Fix call to undefined JS method

Fixes https://github.com/ManageIQ/manageiq/issues/1040

@dclarizio, @h-kataria please review.