Javascript is not working in sidecart page

Hello, i configuired the sidecart page in my site and i am doing the custom changes in the sidecart but the javascript is not working in footer section while i used it to manupulate the dom and added the new elements? So can anyone tell me how to solve this issue??