JavaScript assertion library enhancer