Added service Reference and edited javascript