fix application javascript layout and change root path