javascript slides colour bug fix - if clauses added + assets cleanup