added var sub_path to *.js files