record: JavaScript modifications

* Moves JavaScript to static;
* Record page tab switching triggers "tabreload" event";
* Workaround for legacy URL routing.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>