Script corrections.

Removed duplicate getTracks() function.