Enabled strict mode and fixed code to work.
When using container, set visibility based on $element.parent() visibility.
Fix #143.
Fixes #144.
Fix #144 for data-width="auto".
Fix #144 for data-width="auto" when not using container.
Fix #144 - use $element.outerWidth() when setting the width of $newElement.
Merge pull request #147 from nonplus/master

Fix #143, #144 and visibility issue when using container.