Second attempt at creating the Register screen JS module