Added main.js file
Fix for block javascript