scroll javascript was being initialized twice and causing form submission errors
minor code changes