rewrote main.js in gold app and "refixed" error in bronze

rewrote the main.js file in the gold app to actually use the one
supplied by full sail.  Also "refixed" the ajax highjacking bug in the
bronze index file.  whoops.