added testing for JS