changed the handler404 and handler500 to a custom view, passing scope to get proper formed urls when displaying 404 and 500 pages
$(function() {
// Message ################################################################
var message = $.cookie("message");
if (message != null) {
$.jGrowl(message);
$.cookie("message", null, { path: '/' });
};
});