Moved js module target to global scope