I searched a lot and could not find any PBKDF2 JavaScript implementation that has the Apache License, does it exist or must I implement it by myself?
I found it now, to solve my problem I can use the WebCrypto APIs for JavaScript. An explanation on how to use it can be found here