made Dom style and htmlGenerator private functions into public static functions.