Fixed demo when ran from localhost on Firefox