add function in custom.js

This will do all the custom javascript and jquery