convert most of the files back to javascript