#376: Prevent unnecessary AJAX call in 'ajax_data.js'

Resolves #376.