fix javascript and content display