Add mockito
Refactor js interface intialization