misc updates
adding javascript interface.