fixed android js bug with a nice hack