Update partial.js

Adding replace all function to replace all repeated values