update js && remove functions