add javascript file and test files