moved js to c# scripts