m4: cleaning up

- cleaned up JS
- conditional NOT loading packery for old IE
- added for tiles for demo purpose
- optimised tile flow to have optimal result in a 2-column view