fix javascript for target forms when dashboard.js was filled with extra code