Moved getAvailableQualityLevels to helper.js