Make sure problem level is passed from javascript when writing problem tags

This is for the tag widget.