adding js callbacks started custom.js