Added AJAX global event handler to redirect anonymous user to login/sign_up page when trying to purchase tracks.