Added additional option htmlOutDir for generating html ts to different directory.