organized code into logical blocks.  Fixed non-execution.  Currently always returns 404
Reordered javascript into logical classes.  Fixed unworking code