Add container and remove jquery dependency

Signed-off-by: Ryan Chen <ryan.chen@turn.com>
can you rewrite this logic without the `not`s?