Fixed a couple small javascript errors [Delivers #84149558]

Discovered these while running html5 player in ie8.