Create channelfunctions.js