Ensure constant spec count with or without jQuery