removing unnecessary call for js