refactored js and css to be taken from a cdn where possible