bugfix item-detail view with javascript