Simple loading panel animated with Javascript