general_functions.js