fix js bugs in ie6