Add more JS logging