Improve js dom.