consolidated JS calls