rename .register to .registerElement 

there is no function named .register