fix script js/index.js inclusion; form building