JS Pathna fix for subdirectory