fixed js framework so that it no longer outputs double fail messages