Updated comments in 'functions.js'