refactored with CDNs and removed dependencies