For JavaScript to work properly in databases created with templates such as Web Mail, Discussion, or TeamRoom, the databases must have an .NSF extension.