reverted unwanted changes in shared.js