tring to make a java fork of pass.js