Fixing album sync js error