Made js universal to support nested modules