Testing framework for javascript