Revert "Js decoupling"

Reverts guardian/frontend#4882