Rewrites module to prototype object