Changes button text to 'Redraw Grid' and fixed up js code.