fix js err