move lib js into new directory, and load in index.html