Deleted embedded JS in the view files.

* Create a new route to serve the list of available languages via JSON.
* Deleted all the embedded JS in the view files.