fix basepath for js