setTitle for window in generate.class.js