Added JS API Testing framework

includes one test sample