fixing javascript and stylesheet stuff