changed location of loading.remove
added seek event listener before playing