added tests and stubs for javascript