>
  <script>
    layerJS.init();
    // API calls for slider left/right buttons
    var ilayer = layerJS.select('#layer_image');
    document.getElementById('next').addEventListener('click', function() {
      ilayer.transitionTo(ilayer.currentFrame.neighbors().r, {
        type: 'left'
      });
    });
    document.getElementById('prev').addEventListener('click', function() {
      ilayer.transitionTo(ilayer.currentFrame.neighbors().l, {
        type: 'right'
      });
    });
    // API calls for menu op