Rework javascript bookmark and StatusLabel functions

Deduplicate code by introducing a function changeLabel.

Rename the function hideItemBookmarked because the name was misleading, as the
function doesn't hide the item itself.

Remove unused function parameter.
Remove javascript function ChangeStatus

It's similar to SwitchStatus and unused.