Create HP_functions.js