improve inline js test