Client app: extract method on client app init to javascript_app so it isn't called twice when using parent.javascripts()