Add ability to use containing element

Tested as working here: http://jsfiddle.net/rDm2M/38/