I want to add the js file along with the custom module.After adding it in layout file of my module.Payment method stop to work.Can somebody tell me what is the problem. here is the code- custom_layout.xml
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="head">
<action method="addJs"><script>custom_module/crypto.js</script>
</action>
</reference>
</default>
</layout>
config.xml
<frontend>
<layout>
<updates>
<ideal>
<file>custom_layout.xml</file>
</ideal>
</updates>
</layout>
</frontend>
After adding crypto js,it is available in header but checkout page is not working.here is the screenshots- screenshot of console