Tests lines of JavaScript using eval().