Move PHP JS to ASP.NET JS