allrpg.py fixed

Fixed a bug that preventing working with recent version of Firefox.