first commit. Still bugged
various changes to the javascript and CSS to get it working properly