add the  basic function for testing the javascript the good parts