updated index with corrections.
Updated Javascript with corrections. Removed Routes and Controllers that did not work. Will start fresh later.