Simple JavaScript Encoder