Add basepath for js files