Remove JSTEST macro as it was more of a pain than I first thought
Also add javaSessionFail function to clean up on session js failure and a couple of javaSessionFail calls in jsdom.cpp