Fixed syntax errors, update flash upload, remove js functions from index file.