update js and version for 3.1.0