Primer 3 library translated to Javascript