Class manipulation rewritten from Prototype to jQuery

Partially resolves #872, see https://github.com/ManageIQ/manageiq/issues/214#issuecomment-60060651