updating demo + fixing old js