Added simple JS to add / remove items to the query