[FYR] add javascript test and e2e test