Updated CDN libraries and moved routing to separate file