Couple small changes
Prevent jp from matching jpg
Don't allow indexes larger than start node length