Remove the # mark when location.hash == ""

Example: Closing the settings panel
Use getElementById
Use # instead of javascript:void(0)