Refactored to use function constructor instead of object literal. Added support for multiple elements running the same module and data options to be accessed.