Make the error page JS inline and remove all engine code