replaced old between method with underscore's implementation
(might be worth importing underscore and extending it?)