update js and php