use correct library archive location when linking JavaScript files from packages