JS class to help creating indexes on video tutorials