changed the encoding for Javascript