Added encoding issue to JS