Simple tester on JS