Moved angular register code to BBCode module