add target param, improve js-file