added js binding