updated JS calls