JS test for placing slider inside specified container