Add javascript fix for windows phone