template fixes

some small fixes for the profileOptions template and the related javascript.