fixing javascript and missing styles