Added javascript to load files on start