Create and emulate html5 details tag