updated js : using a playlist module to handle the track collection