Revert "Fixed thread.js"

This reverts commit 37ba631997f375d1b2302fc0905335dc5ac169a1.
Added HttpRequest for HTML5 target