Update basejs.php

only set uri_segment_x if isset $uri_segmentx
Merge pull request #13 from navblue/patch-2

Update basejs.php