$(document).ready(function(){
// SECURE FORM 
// remove JavaScript warning 
$('.warning').remove(); 
// simple GET request to the server to retrieve the text 
$.get('scripts/token.php',function(txt) { 
// find element with class="secure" 
$('.secure') 
// append hidden input with server time (from AJAX call) 
.append('<input type="hidden" name="ts" value="'+txt+'" />'); });

});