Setup application resources with jquery