Advanced client-side scripting