fix source preview script for undefined tag and claim box

I'll just have to trust you on this one.

We need a better setup for javascript code review!