Make the use of innerHTML more efficent.