Move sequence colouring to javascript.