fix javascript basepath server