added some jquery. In catalog.js left one function, everything else was almost copy\paste.