fix javascript presentation bug