How do you plan to use this alternative javascript implementation, when this module depends on java.prefs, so it is not possible to compile it to JS?