add $ reference for commonjs