upadted common js file