Update macd.js