modified document of javascript