Update b31g.php

cleaned up javascript