working on javascript interface