rearrange repl code:  beagle files into own dir; js files into javascript dir