Check $PAGE state; render playlist in PHP as anchor tags