cleanup for loops, use strings += instead of array.push/join, use strict mode