added mensa model
restructured code
added sources, the javascript scope is weird..