Fix IE 10 related errors

- Remove 'publish' block
- `hidden` property not respected by IE 10, use attribute