change encoding of js