request javascript encoding