Class manipulation rewritten from Prototype to jQuery

Partially resolves #872, see https://github.com/ManageIQ/manageiq/issues/214#issuecomment-60060651
Prefer string interpolation over concatenation.