Update custom.js

Adding a doc.ready since it seems like Chrome is trying to be clever with how the JS is loading