js service call not working