HTML Dynamic Cell colour change dependent on table cell value

SOLVED!!
The script that does the cell colour changes only ran once, hence all statics coloured in!

So I made it into a function and called it every time an update is received, Works 100%

Thanks all for your help.