[EditSuite] Implemented AJAX loading of JS

* Fixed the problem of page-dependent JS (works now)