working on making module container more robust
fixing js error