Added javascript interface