added separate js files
changed colour rotation to go through rgb