rewrite index by using js for content-change, init doc for jobmanagement