It deals with js initiated calls