trying to fix the js issue