Update parseColor, remove reliance on browser