Added javascript stuff to add files