updated JS interface/init