initial efforts to obfuscate/functionalise AJAX
javascript updated from check-specific (inline) to common include script