Gender fig bars & "class"-like js 

Gender fig now works as a pseudo-bar plot. Structure of js is changed as well to help future extensions.