move to loaded js libs dynamically

This means that if the geoClock is loaded via file:
the libs are still loaded via http: