Updated JS

Bug fixes so that Fluidbox does not break when a very general selector
is used.