converts osu files into javascript objects