Removed jQuery specific code.
Fixed bug in facet selection