Why not just assign “overflow: auto;” to the container div?
http://codepen.io/anon/pen/wgrJGr