load js from cdn or locally