added initial javascript and first json test and impl