renamed vars and functions from item<some_text> to jewel<some text>; added check for rights by user.role field (before was hardcoded var)