$(document).ready(function() { var answer = null; if (answer) $.showMessages(answer["MSG"], answer["STATUS"]); });