minor edits to index, script, and php. changed .concat to + for performance.