Moved custom functions from chat.js to custom.js - which make more sense there :p

Title explains it all.