ace editor sometimes not loading fixed