Adds convenient methods to javascript console api for coloured output.