Update common_functions.js