Added javascript for forms