add js file support, add split option