Add javascript to for form behavior