move file actions and related code into onready - this can prevent display of play and pause actions - seen on Firefox