Bugfixes with javascript and css