Enhanced eval JavaScript function.