reorganize javascript tree, putting scripts into their own sub-directory