fixed js block in docs