Move script tags to end of body
Add inline document meta support
Fix old exception syntax