updated demo files and cleanup js