Moved item open/close display property from JS to CSS