Basing Javascript bar and note creator.