[master] Fix assets paths for 2.2.0.beta

Fixes (hopefully) assets paths for 2.2.0.beta. Also use $(document).on that's more agnostic then native JS.