Moved muscula error handling to <head>