adding js interfarce