Update general-functions.js