compile test to js