Separated inline JS into files, added include_once-like JS loading