fixed js and wp8 layout