Implement fairly functional sidebar, JS is thrown into layout template - needs to move eventually