if running time < 1s, make it 1s.
rewrite random folder generation code. Avoid random name conflict.
add javascript null value checking