Several users had similar problems that were caused by transferring the files to a web server using FTP ASCII mode instead of binary mode. The solution is described in this post: Help with html5 (self hosting) - #5 by wojtek
Could you check if it helps in your case?