Update custom.js

Fixed JS bugs as wordpress needs the $ replaced with 'jQuery' (no-conflict mode).