luahttp: fix document parsing with inline javascript