adds rainbow.js support
reorganized some files