Can I manipulate DOM in handlebars?

I want to create a sidebar where if I click on hamburger button the sidebar shows up and if I click on cross button it get hide
I am embedding script in handlebars but its getting error 404 ,though the path is correctly given