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.
Fixed merging issue