Added the isTouchDevice and colourLuminace functions in the spec