ajax dom fix

* Changed event handlers to container
* Renamed files
* Added js to the end