Split as colors to gui part and fix js syntax.