Clean up of primary JS module