My javascript solution to the 'gilded rose' coding kata.