added write_js
added shape_type==points