v0.3.0 added js encoder