[1016578] Removed the new selection type for the libraries, and used params. Stripped handling of jquery to be more generic