fixed the windows mobile 8 js issue