[js] add scriptPath in include script