Class manipulation rewritten from Prototype to jQuery

Partially resolves #872, see https://github.com/ManageIQ/manageiq/issues/214#issuecomment-60060651
IMO escaping the # makes this harder to read and isn't necessary for the functionality.