javascript to implement scrolling for yoga classes