Updated readme, exported js from register