Bash fixes and d3 progress