applied to javascript same colors as for php