moves all local JS scripts into lib directory.