Added JS for wp8