After my page has loaded, the script that's inside the body tags will be removed by the remove(); function:
<script>
$(document).ready(function()
{
    $('script').remove();
});
</script>
My question is if this is a good thing to do or if it's just useless.
EDIT:
var $data = [];
$data.push($('#login_form').serializeArray());
$.ajax({
    url: '<?php echo Router::url(array('controller'=>'account', 'action'=>'login'),true); ?>',
    type: 'post',
    data: {data:$data},
    success: function(result,status)
    {
        $('.message').html(result);
    }
});
The request goes via SSL. It queries some data from the database and returns this. That is excually all. And this is just one partically request I got about 50 of those requests. So would like to know how to make it a bit more secure.
 
     
     
    