Add Security

Verify the resquest is a xmlhttprequest.
Adding a new method to print String