Javascript snippet moved to a file: custom.js