fix js when the front-end is down