Remove unused function in custom.js